﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="frmGestionarPedido.aspx.cs" Inherits="Presentacion.frmGestionarPedido" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <p>
        &nbsp;<asp:Label ID="Label1" runat="server" Text="Ingrese Nombre del Proveedor:"></asp:Label>
        <asp:TextBox ID="txtBusca" runat="server"></asp:TextBox>
        <asp:Button ID="btnBuscar" runat="server" Text="Buscar" />
        <asp:Button ID="btnNuevo" runat="server" Text="Nuevo Pedido" 
            onclick="btnNuevo_Click" />
        <asp:GridView ID="GridView1" runat="server" CellPadding="4" 
            DataSourceID="ObjectDataSource1" ForeColor="#333333" GridLines="None" 
            AllowPaging="True" AutoGenerateColumns="False" Width="726px">
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            <Columns>
                <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" />
                <asp:BoundField DataField="NombreCompleto" HeaderText="NombreCompleto" 
                    SortExpression="NombreCompleto" ReadOnly="True" />
                <asp:BoundField DataField="Fecha" HeaderText="Fecha" SortExpression="Fecha" />
                <asp:BoundField DataField="Total" HeaderText="Total" SortExpression="Total" />
                <asp:BoundField DataField="EmpleadoA" HeaderText="Empleado" 
                    SortExpression="EmpleadoA" />
                <asp:CheckBoxField DataField="Activo" HeaderText="Activo" 
                    SortExpression="Activo" />
                <asp:HyperLinkField DataNavigateUrlFields="Id" 
                    DataNavigateUrlFormatString="frmPedido.aspx?acc=editar&amp;idPed={0}" 
                    HeaderText="Acción" Text="editar" />
            </Columns>
            <EditRowStyle BackColor="#999999" />
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#E9E7E2" />
            <SortedAscendingHeaderStyle BackColor="#506C8C" />
            <SortedDescendingCellStyle BackColor="#FFFDF8" />
            <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
        </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            SelectMethod="BuscarPorProveedor" TypeName="BL.PedidoBL">
            <SelectParameters>
                <asp:ControlParameter ControlID="txtBusca" DefaultValue="%" Name="nombre" 
                    PropertyName="Text" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </p>

</asp:Content>
